package cn.njxzc.examples;

import java.io.File;
import java.io.FilenameFilter;

class FileSelection implements FilenameFilter {

	String key;

	FileSelection(String key) {
		this.key = key;
	}

	public boolean accept(File dir, String name) {
		return name.indexOf(key) != -1;
	}

}
